package com.zp.business.service.patient;

import com.zp.business.entity.patient.ClinicMaster;
import com.zp.business.entity.patient.bo.ClinicMasterBo;
import com.zp.business.entity.patient.vo.ClinicMasterVo;
import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 门诊就诊记录Service接口
 *
 * @author zhang peng
 * @ date 2023-12-23
 */
public interface IClinicMasterService {

    /**
     * 查询门诊就诊记录
     */
    ClinicMasterVo queryById (String id);

    /**
     * 查询门诊就诊记录列表(分页)
     */
    TableDataInfo<ClinicMasterVo> queryPageList (ClinicMasterBo bo, PageQuery pageQuery);

    /**
     * 查询门诊就诊记录列表(不分页)
     */
    List<ClinicMasterVo> queryList (ClinicMasterBo bo);

    /**
     * 新增门诊就诊记录
     */
    Boolean insertByBo (ClinicMasterBo bo);

    /**
     * 新增门诊就诊记录
     *
     * @param bo
     * @return clinicMaster对象
     */
    ClinicMaster insertByBoRetCM (ClinicMasterBo bo);

    /**
     * 修改门诊就诊记录
     */
    Boolean updateByBo (ClinicMasterBo bo);

    /**
     * 校验并批量删除门诊就诊记录信息
     */
    Boolean deleteWithValidByIds (Collection<String> ids, Boolean isValid);

    Map<String, Integer> getPatientCount (ClinicMasterBo bo);

    /**
     * 获取已诊、未诊、待诊人数 返回map
     *
     * @param bo
     * @return map
     */
    Map<String, Integer> getNumGroupClinicType (ClinicMasterBo bo);

    /**
     * 修改ClinicType
     *
     * @param bo
     * @return
     */
    boolean updateClinicType (ClinicMasterBo bo);

    /**
     * 修改接诊医生doctor_id
     */
    boolean updateDoctorId (String clinicId, String isUpdateDoctorId);
}
